<%- include header %>
<div class="article">
	<!-- 标题 -->
	<h1><%= art.title %></h1>
	<p>
		<span class="author">
			<span class="text-bold">作者： </span>
			<a href="/u/<%= art.author %>"><%= art.author %></a>
			<!-- <%= art.author %> -->
		</span> |
		<span class="create-time">
			<span class="text-bold">时间： </span>
			<%= moment(art.createTime).format('LL HH:mm:ss') %>
		</span> |
		<span class="pv">
			<span class="text-bold">浏览： </span>
			<%= art.pv %>
		</span> |
		<span class="tag"><%= art.tag %></span>
		<% if (user) {%>
		    <% if(user.isadmin != "true") {%>
		        <div class="control">
					<a href="/join/<%= art._id%>" class="pull-right edit btn btn-success join">报名</a>
		        </div>
		    <% } %>
		<%}%>
		<!-- <a href="/join/<%= art._id%>" class="pull-right remove">报名</a> -->
	</p>

	<p></p>
	<p></p>
	<p><%= art.content %></p>
</div>

<%- include footer %>